package com.cheng.commonutlis.avtivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.cheng.commonlibrary.activity.CommonActivity;
import com.cheng.commonlibrary.activity.utlis.ActivityUtils;
import com.cheng.commonutlis.R;

import java.util.List;

public class Main2Activity extends CommonActivity {

    private static final String TAG = "Main2Activity";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);

    }

    @Override
    protected void onRestart() {
        super.onRestart();
    }

    @Override
    protected int loadLayoutResId() {
        return 0;
    }

    public void onClick(View view) {
        startActivity(new Intent(getActivity(),Main3Activity.class));
    }

    public void onActivity(View view) {
        List<Activity> stackActivitys = ActivityUtils.getInstance().getStackActivitys();
        Log.d(TAG, "onClick: " + stackActivitys.size() + stackActivitys);
    }
}
